//
//  XWXSqliteTable.h
//  XWXSqlite
//
//  Created by 许卫星 on 17/9/4.
//  Copyright © 2017年 wxxu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XWXSqliteTable : NSObject

/**
 执行一条sql语句

 @param sqlString sql

 @return 执行是否成功
 */
+ (BOOL)executeSQL:(NSString *)sqlString withDBName:(NSString *)dbName error:(NSError **)error;

/**
 执行一组sql语句
 
 @param sqlString sql
 
 @return 执行是否成功
 */
+ (BOOL)executeSQLArray:(NSArray<NSString *> *)sqlStrings withDBName:(NSString *)dbName error:(NSError **)error;
/**
 查询语句

 @param sqlString sql

 @return 查询结果
 */
+ (NSArray *)fetchWithSQL:(NSString *)sqlString withDBName:(NSString *)dbName error:(NSError **)error;

@end
